package io.github.xxyopen.novel.dto.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NovelInfoRespDto {
   @Schema(description = "书类别id")
    private String categoryId;
    @Schema(description = "类别名")
    private String categoryName;
    /**
     *
     */
    @Schema(description = "书籍id")
    private String bookId;
    /**
     * 书名
     */
    @Schema(description = "书名")
    private String bookName;
    /**
     * 章节id
     */
    @Schema(description = "章节id")
    private String chapterId;
    /**
     * 章节号
     */
    @Schema(description = "章节号")
    private Long chapterNum;
    /**
     * 更新日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
    /**
     * 内容Id
     */
    @Schema(description = "内容Id")
    private Long contentId;
    /**
     * @var 内容
     */
    @Schema(description = "内容")
    private String content;
    /**
     * @var 章节名
     */
    @Schema(description = "章节名")
    private String chapterName;
    /**
     * @var 序号
     */
    @Schema(description = "序号")
    private Integer rank;
    /**
     * @var 相似度百分比
     */
    @Schema(description = "相似度百分比")
    private Float percent;
    /**
     * @var 权重
     */
    @Schema(description = "权重")
    private Float weight;
}
